package pe.edu.upc.dsd.mercadolibre;

import java.util.Collection;
import javax.jws.WebService;

@WebService
public class BuscarArticuloImpl implements BuscarArticulo {
	
	public Collection<Articulo> ListarArticulos() throws DAOExcepcion
	{
		ArticuloDAO dao=new ArticuloDAO();
		return dao.ListaArticulosDB();
	}

	public Collection<Articulo> BuscarArticulos(String TxtB) throws DAOExcepcion
	{
		ArticuloDAO dao=new ArticuloDAO();
		return dao.BuscarArticulosDB(TxtB);
	}
	public Articulo ObtenerArticulo(int id) throws DAOExcepcion
	{
		ArticuloDAO dao=new ArticuloDAO();
		return dao.ObtenerArticuloDB(id);
	}

}

